package com.yyc.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.yyc.core.Mapper;
import com.yyc.system.model.TUserBook;

public interface TUserBookMapper extends Mapper<TUserBook> {

	@Select("SELECT DISTINCT(b.catalog_name) FROM t_user_book a,t_catalog b WHERE a.user_id=#{userId} AND a.book_id=b.id ORDER BY a.create_time")
	List<TUserBook> getUserReadBook(Integer userId);
}